package com.yuw.oophomework6;

public class LiteratureStudent extends Student {
    private Double spokenScore;
    private Double workScore;


    @Override
    public Double calculateCourseScore() {
        Double score = null;

        score = MyUtils.getDaulbeValue(this.getSpokenScore()) * 0.35
                + MyUtils.getDaulbeValue(this.getWorkScore()) * 0.35
                + MyUtils.getDaulbeValue(this.getMiddleScore()) * 0.15
                + MyUtils.getDaulbeValue(this.getMiddleScore()) * 0.15;

        return score == 0.0 ? null : score;
    }

    public Double getSpokenScore() {
        return spokenScore;
    }

    public void setSpokenScore(Double spokenScore) {
        this.spokenScore = spokenScore;
    }

    public Double getWorkScore() {
        return workScore;
    }

    public void setWorkScore(Double workScore) {
        this.workScore = workScore;
    }
}
